import fetch from '@/utils/fetch'
const RecycleApi = {
    getPageList (params) {
      return fetch({
        url: '/api/recycle/type/page',
        method: 'get',
        params: params
      })
    },
    add (params) {
      return fetch({
        url: '/api/recycle/type/add',
        method: 'post',
        data: params
      })
    },
    update (params) {
      return fetch({
        url: '/api/recycle/type/' + params.id,
        method: 'put',
        data: params
      })
    },
    del (params) {
      return fetch({
        url: '/api/recycle/type/' + params,
        method: 'delete'
      })
    },
    // put (params) {
    //   return fetch({
    //     url: '/api/business/goods/put',
    //     method: 'post',
    //     data: params
    //   })
    // }
    // 查询预约订单记录
    getReservationList (params) {
        return fetch({
          url: '/api/recycle/reservation/page',
          method: 'get',
          params: params
        })
      },
    //  查询预约订单详情
    getReservationDetail (params) {
        return fetch({
          url: '/api/reservation/detail/list',
          method: 'get',
          params: params
        })
      },
    //  
  }
  export default RecycleApi
  